package book;

/**
 * @Author MDD
 * @Description
 * @Version
 * @Date
 **/
public class Book {
    private int bookId;
    private String bookName;
    private String press;
    private double peice;

    public Book(final int bookId, final String bookName, final String press, final double peice) {
        this.setBookId(bookId);
        this.setBookName(bookName);
        this.setPress(press);
        this.setPeice(peice);
    }
    public void report(Book info){
        System.out.println("ID ： "+info.getBookId()+"\n书籍名称 ："+info.getBookName()+"\n出版社："+info.getPress()+"\n价格："+info.getPeice());
    }
    public int getBookId() {
        return this.bookId;
    }

    public void setBookId(int bookId) {
        this.bookId = bookId;
    }

    public String getBookName() {
        return this.bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getPress() {
        return this.press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public double getPeice() {
        return this.peice;
    }

    public void setPeice(double peice) {
        this.peice = peice;
    }

}
